﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OPCDemo
{
    public partial class FrmParamSet : Form
    {
        public FrmParamSet(string itemId, string varType, string current)
        {
            InitializeComponent();

            this.txt_itemId.Text = itemId;
            this.txt_VarType.Text = varType;
            this.txt_Current.Text = current;
        }

        public string SetValue { get; set; }

        public bool IsSync { get; set; }

        private void btn_Sure_Click(object sender, EventArgs e)
        {
            //数据验证
            this.SetValue = this.txt_Set.Text;
            this.IsSync = this.rdo_Sync.Checked;

            this.DialogResult = DialogResult.OK;
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
